package com.itzhouwei.commerce.vo;


import lombok.Data;


import java.io.Serializable;


@Data
public class PageParam implements Serializable {

    private static final Integer PAGE_NO = 1;
    private static final Integer PAGE_SIZE = 10;

//    @NotNull(message = "页码不能为空")
//    @Min(value = 1, message = "页码最小值为 1")
    private Integer pageNo = PAGE_NO;

//    @Schema(description = "每页条数，最大值为 100", required = true, example = "10")
//    @NotNull(message = "每页条数不能为空")
//    @Min(value = 1, message = "每页条数最小值为 1")
//    @Max(value = 100, message = "每页条数最大值为 100")
    private Integer pageSize = PAGE_SIZE;

}
